package com.linx.common.core.domain.model;

import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 正元房间请求对象
 */

@Data
public class ZYRoomForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Integer lineSize; // 一次查多少条，默认20条

    private Integer queryPage; // 查询页码

    private String roomNo; // 房间号

    private String dataType; // 数据类型

    /**
     *
     */
    private List<RoomData> data;


    /**
     * 楼层
     */
    @Data
    public static class RoomData implements Serializable {

        // 房间ID
        private String roomID;

        // 房间名称
        private String name;

        // 楼层ID
        private String floorID;

        private List<DataList> list;

        public RoomData(String roomID, String name, String floorID, List<DataList> list) {
            this.roomID = roomID;
            this.name = name;
            this.floorID = floorID;
            this.list = list;
        }

    }

    /**
     *
     */
    @Data
    public static class DataList implements Serializable {

        // 房号
        private String no;

        // 房间名称
        private String name;

        // 最大入住人数
        private Integer maximumOccupancy;

        public DataList(String no, String name, Integer maximumOccupancy) {
            this.no = no;
            this.name = name;
            this.maximumOccupancy = maximumOccupancy;
        }

    }

}
